package cn.hicard.risk.service.bd.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.hicard.core.Page;
import cn.hicard.core.PageResult;
import cn.hicard.core.Where;
import cn.hicard.risk.dao.bd.BankcallDao;
import cn.hicard.risk.entity.BdBankcall;
import cn.hicard.risk.service.bd.BankcallService;

@Service
public class BankcallServiceImpl implements BankcallService{

	private BankcallDao bankcallDao;
	
	public void setBankcallDao(BankcallDao bankcallDao) {
		this.bankcallDao = bankcallDao;
	}
	
	@Override
	public void save(BdBankcall bankcall) throws Exception {
		this.bankcallDao.save(bankcall);
	}

	@Override
	public PageResult<BdBankcall> search(BdBankcall bankcallStart,BdBankcall bankcallEnd, Page page)
			throws Exception {
		return bankcallDao.search(bankcallStart,bankcallEnd,page);
	}

	@Override
	public void update(BdBankcall bankcall) throws Exception {
		this.bankcallDao.update(bankcall);
		
	}

	@Override
	public List<BdBankcall> findList(BdBankcall bankcallStart,
			BdBankcall bankcallEnd) throws Exception {
		return bankcallDao.findList(bankcallStart, bankcallEnd);
	}

	@Override
	public List<BdBankcall> findListByWhere(Where where) throws Exception {

		return bankcallDao.findListByWhere(where);
	}

}
